package com.vhall.component.controller.sign.facade;

import com.vhall.component.entity.sign.vo.SignRecordPageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author longzhen.gong
 * @date 2021/6/3 10:21
 */
@FeignClient(value = "SignInnerFacade", path = "/v4/inner/sign")
public interface SignInnerFacade {

    /**
     * 查询开播后的签到数据
     *
     * @param roomId
     * @param startDateTime
     * @param page
     * @param pageSize
     * @param queryCount
     * @return
     */
    @GetMapping("/recordslive")
    SignRecordPageVO<Integer> selectSignAfterLiveStart(@RequestParam("roomId") String roomId,
                                                       @RequestParam("startDateTime") String startDateTime,
                                                       @RequestParam("page") int page,
                                                       @RequestParam("pageSize") int pageSize,
                                                       @RequestParam("queryCount") boolean queryCount);

    /**
     * 查询开播后的签到人数
     *
     * @param roomId        房间id
     * @param startDateTime 开始时间
     * @return
     */
    @GetMapping("/partakeTotal")
    Integer countPartakeTotalAfterLiveStart(@RequestParam("roomId") String roomId,
                                            @RequestParam("startDateTime") String startDateTime);
}
